package com.wlc.one;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author 王立朝
 * @date 2022/11/22
 * @description:
 */
@Configuration
@PropertySource("classpath:test.properties") //读取配置文件
@ConfigurationProperties(prefix = "wanglichao") //读取wxpay节点
@Data
public class TestConfig {
    private String name;
    private int age;
    private String address;
}
